<template>
    <div>
      <el-row>
        <el-link icon="el-icon-edit" @click="toEdit"></el-link>
      </el-row>
    </div>
</template>

<script>
export default {
  data(){
    return {

    }
  },
    props: [
  　　'row', 'data', 'more'
　],
computed: {
    displayRules() {
      var rules = {};
      for (var i in this.$store.state.main.entry.table.action) {
        let a = this.$store.state.main.entry.table.action[i];
        if (a.displayRule) {
          rules[a.client.commit] = a.displayRule;
        }
        console.log(a);
      }
      return rules;
    }
  },
  methods:{
    toEdit() {
      console.log('wayBillId:',this.data['id']);
      var url = '#/blank/waybill__singleedit__main';
      localStorage.setItem('waybillId',this.data['id'])
      // this.$nextTick(()=>{
      this.$store.dispatch("loadBlankEntry", url);
      url = url + "?waybillId=" + this.data["id"];
      // location.href = url;
      window.open(url,"_blank");
      // debugger;
      console.log("this.$store.state.main.entry.table.action",this.$store.state.main.entry.table.client.class);
        //this.$store.dispatch('loadBlankEntry', url);
       
      // })
    }
  }
}
</script>

